<?php 
namespace app\admin\model;
use think\Model;
use traits\model\SoftDelete;

//user表的模型类
class Businesscenter extends Model{



	//引用SoftDelete,软删除
	protected static $deleteTime = 'delete_time';

	//自动完成字段设置
	protected $auto = ['create_time'];

	//protected $update = ['login_ip'];
	//自动获取IP
	protected function setIpAttr(){
		return request()->ip();
	}
	

	//更新时间

    protected function setCreateTimeAttr($value){
        return strtotime($value);
    }

   

}


 ?>